import Mock from 'mockjs'

/**
 * 模拟 GET 请求 '/mock/api/v1/list' 资源
 */
Mock.mock('/mock/api/select/list', 'get', () => {
  // 按照接口规范模拟数据
  const data = Mock.mock({
    'list|18': [
      {
        // id: Mock.Random.guid(),
        id: '@guid',
        buttonContent: '@cword(4)',
      },
    ],
    isEnd: false,
  })

  return {
    code: 200,
    data,
  }
})
